package model

import (
	"time"
)

type AuWalletPayment struct {
	PaymentId           int       `xorm:"not null pk autoincr INT(11)"`
	WalletId            int       `xorm:"not null index INT(11)"`
	PaymentType         int       `xorm:"default 0 index TINYINT(1)"`
	PaymentMode         int       `xorm:"default 0 TINYINT(1)"`
	PaymentCard         string    `xorm:"not null default '' VARCHAR(60)"`
	PaymentBank         string    `xorm:"not null default '' VARCHAR(60)"`
	PaymentBankBranch   string    `xorm:"not null default '' VARCHAR(60)"`
	PaymentCardOwner    string    `xorm:"not null default '' VARCHAR(60)"`
	PaymentAmount       string    `xorm:"not null default 0.00 DECIMAL(9,2)"`
	PaymentStatus       int       `xorm:"default 0 TINYINT(1)"`
	PaymentFaildOption  int       `xorm:"default 0 TINYINT(1)"`
	PaymentFaildReason  string    `xorm:"not null default '' VARCHAR(60)"`
	PaymentRemark       string    `xorm:"not null default '' VARCHAR(60)"`
	ReviewerAccountId   int       `xorm:"default 0 index INT(11)"`
	ReviewerAccountName string    `xorm:"default '' index VARCHAR(20)"`
	ProcessTime         time.Time `xorm:"not null DATETIME"`
	LastUpdateTime      time.Time `xorm:"not null DATETIME"`
	Createtime          time.Time `xorm:"not null index DATETIME"`
}
